import java.util.Iterator;

public class AboutString {
    public static void main(String[] args) {
        String s ="My name is Carrol";
        System.out.println(s);
        System.out.println(s.length());
        System.out.println(s.charAt(0));
        System.out.println(s.charAt(s.length()-1));
        System.out.println(s.split(" ")[0]);

    }
}
